/*
 * @Author: 郑灶欣
 * @Date: 2023-02-06 10:28:27
 * @LastEditors: 郑灶欣
 * @LastEditTime: 2023-02-06 13:45:01
 * @FilePath: \office\vite.config.ts
 * @Description: 
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    // 配置路径别名
    alias: {
      '@':resolve('src')
    },
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: '@import "@/style/globalVar.scss";',
      }
    }
  },
})
